home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15461 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news.th-darmstadt.de!news
  2. From: enno@inferenzsysteme.informatik.th-darmstadt.de (Enno Sandner)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Assignment op. for an object with reference member
  5. Date: 05 Apr 1996 10:04:49 +0200
  6. Organization: Fachbereich Informatik, TH Darmstadt
  7. Sender: enno@kitz.inferenzsysteme.informatik.th-darmstadt.de
  8. Message-ID: <ltag0rxfj2.fsf@kitz.inferenzsysteme.informatik.th-darmstadt.de>
  9. References: <3163FE18.28D@dbsoftware.com>
  10. NNTP-Posting-Host: kitz.intellektik.informatik.th-darmstadt.de
  11. In-reply-to: Guru Chandar's message of Thu, 04 Apr 1996 11:51:36 -0500
  12. X-Newsreader: Gnus v5.1
  13.  
  14. In article <3163FE18.28D@dbsoftware.com> Guru Chandar <GCHAN@dbsoftware.com> writes:
  15.  
  16.     [ ... ]
  17.  
  18.    1. Is it legel to even attempt to change a reference after it is initialized?
  19.       ARM & other books say that the only way to assign a value to a reference
  20.       is when you initialize it.
  21.  
  22. You cannot change the referred object of an already initialized
  23. reference in a portable way -- Use pointers instead.
  24.  
  25.         Enno
  26.